<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'version.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  <body>
  <table>
  		<tr>
  			<th>添加时间
  			<th>iOS
  			<th>安卓
  			<th>状态
  		</tr>
    <c:forEach items="${requestScope.vers}" var="ver" varStatus="v">
    	<tr>
    		<td>${ver.time}
    		<td>${ver.iosversionNum }
    		<td>${ver.andversionNum }
    		<c:if test="${ver.type==1 }">
    			<td>最新
    		</c:if>
    		
    		<c:if test="${ver.type==2 }">
    			<td>可用
    		</c:if>
    		
    		<c:if test="${ver.type==0 }">
    			<td>不可用
    		</c:if>
    	</tr>
    </c:forEach>
    
   </table>
  </body>
</html>
